import request from '@/utils/request'
import qs from 'qs'

export let getListApi = (params) => {
  return request({
    url: "/exam/get-exam",
    method: "get",
    params: params || {},
  })
}

export let addListApi = (data) => {
  return request({
    url: "/exam/add-exam",
    method: "post",
    data: qs.stringify(data),
  })
}

export let updataListApi = (data) => {
  return request({
    url: "/exam/add-exam",
    method: "post",
    data: qs.stringify(data),
  })
}

export let delListApi = (id) => {
  return request({
    url: "/exam/del-exam",
    method: "get",
    params: { id },
  })
}